package com.cloud.pora.mrm.web.common.themes;

import static org.jboss.seam.ScopeType.SESSION;

import java.util.ArrayList;
import java.util.List;

import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;

@Scope(SESSION)
@Name("themeDialogBean")
public class ThemeDialogBean {

    private List<Theme> themes;

    public List<Theme> getThemes() {

        if (themes == null) {
            page();
        }
        return themes;
    }

    public int getSize() {
        return themes == null ? 0 : themes.size();
    }

    public void page() {

        themes = new ArrayList<Theme>();
        themes.add(new Theme("afterdark", "Afterdark.png"));
        themes.add(new Theme("afternoon", "Afternoon.png"));
        themes.add(new Theme("afterwork", "Afterwork.png"));
        themes.add(new Theme("aristo", "Aristo.png"));
        themes.add(new Theme("black-tie", "Black-Tie.png"));
        themes.add(new Theme("blitzer", "Blitzer.png"));
        themes.add(new Theme("bluesky", "Bluesky.png"));
        // themes.add(new Theme("bootstrap", "Bootstrap.png"));
        themes.add(new Theme("casablanca", "Casablanca.png"));
        themes.add(new Theme("cruze", "Cruze.png"));
        themes.add(new Theme("cupertino", "Cupertino.png"));
        themes.add(new Theme("dark-hive", "Dark-Hive.png"));
        themes.add(new Theme("dot-luv", "Dot-luv.png"));
        themes.add(new Theme("eggplant", "Eggplant.png"));
        themes.add(new Theme("excite-bike", "Excite-bike.png"));
        themes.add(new Theme("flick", "Flick.png"));
        themes.add(new Theme("glass-x", "Glass-x.png"));
        themes.add(new Theme("home", "Home.png"));
        themes.add(new Theme("hot-sneaks", "Hot-sneaks.png"));
        themes.add(new Theme("humanity", "Humanity.png"));
        themes.add(new Theme("le-frog", "Le-frog.png"));
        themes.add(new Theme("midnight", "Midnight.png"));
        themes.add(new Theme("mint-choc", "Mint-choc.png"));
        themes.add(new Theme("overcast", "Overcast.png"));
        themes.add(new Theme("pepper-grinder", "Pepper-Grinder.png"));
        themes.add(new Theme("redmond", "Redmond.png"));
        themes.add(new Theme("rocket", "Rocket.png"));
        themes.add(new Theme("sam", "Sam.png"));
        themes.add(new Theme("smoothness", "Smoothness.png"));
        themes.add(new Theme("south-street", "South-Street.png"));
        themes.add(new Theme("start", "Start.png"));
        themes.add(new Theme("sunny", "Sunny.png"));
        themes.add(new Theme("swanky-purse", "Swanky-Purse.png"));
        themes.add(new Theme("trontastic", "Trontastic.png"));
        themes.add(new Theme("ui-darkness", "UI-Darkness.png"));
        themes.add(new Theme("ui-lightness", "UI-Lightness.png"));
        themes.add(new Theme("vader", "Vader.png"));

    }

}